  <tr valign="top">
    <td height="40" align="left" class="dato" background="/images/topHeader.gif" colspan="4">Eventos</td>
  </tr>
    <tr>
     <td colspan="4" align="center" background="/images/vg.jpg"><span class="subdatos">Información de eventos</span></td>
  </tr>
    <tr><td>&nbsp;</td></tr>


<table>
  <tr>
  </tr>

<% @events.each do |event| 
   @currentcategory = Category.find(event.category_idf) %>
  <tr>
  	<td>
		<%= @currentcategory.name %>
	</td>
  	<td>
		<%= event.name %>
	</td>
	<td>
		<%= event.eventstart.strftime("%I:%M %p ") %><%= event.eventstart.strftime("%d %b %Y") %>
	</td>
    <td><%= link_to 'Mostrar', event %></td>
    <td><%= link_to 'Modificar', edit_event_path(event) %></td>
    <td><%= link_to 'Eliminar', event, :confirm => 'Esta seguro?', :method => :delete %></td>
  </tr>
<% end %>
 <tr><td>&nbsp;</td></tr> <tr><td>&nbsp;</td></tr>
<tr>
<td><%= link_to 'Nuevo Evento', new_event_path %></td></tr>